<h1><?=$this->translate->_('header_be_cats')?></h1>

<form method="post" onsubmit="document.location.href='category-' + document.getElementById('category_uid').value + '.html'; return false;">
	<p class="form_cell">
		<label for="category_uid"><?=$this->translate->_('admin_categories')?></label>
			<select name="category_uid" id="category_uid">
				<option value=""><?=$this->translate->_('form_choose')?></option>
				<?if($this->cats_count > 0):?>
					<?foreach($this->cats_res AS $result):?>
						<option value="<?=$result['uid']?>"><?=$this->escape($result['title'])?></option>
					<?endforeach;?>
				<?endif;?>
			</select>
		<br />
		<span><?=$this->translate->_('admin_categories_desc')?></span>
	</p>
	<p><input type="submit" value="<?=$this->translate->_('form_submit')?>" /></p>
</form>

<p>
	<a href="<?=$this->url(array('module' => 'backend', 'controller' => 'categories', 'action' => 'add'), 'be_cats_add', true)?>">
		<?=$this->translate->_('admin_categories_add')?>
	</a>
</p>